package org.apache.fop.render.pdf;

import org.apache.fop.render.intermediate.IFException;
import org.apache.fop.render.intermediate.IFPainter;
import org.apache.fop.render.pdf.PDFDocumentHandler;

import com.thunisoft.converter.ConverterUtils;

public class CustomPDFDocumentHandler extends PDFDocumentHandler {

    public IFPainter startPageContent() throws IFException {
        PDFLogicalStructureHandler logicalStructureHandler = (PDFLogicalStructureHandler) ConverterUtils.getField(
                PDFDocumentHandler.class, this, "logicalStructureHandler");
        return new CustomPDFPainter(this, logicalStructureHandler);
    }
}
